package com.sudo.service.admin.service;


import com.sudo.common.utils.PagedGridResult;
import com.sudo.dao.admin.entity.SysButton;
import com.sudo.dao.admin.entity.SysRoleButton;
import com.sudo.dao.admin.model.bo.*;
import com.sudo.dao.admin.model.vo.SysRoleButtonVO;

import java.util.List;

/**
 * @author 为道日损 2020-04-28 8:35
 */
public interface SysButtonService {

    PagedGridResult getSysButtonByMenuCode(SysButtonQueryBO sysButtonQueryBO);

    SysButton getSysButtonByMenuButtonCode(String menuCode, String buttonCode);

    int updateSysButtonByMenuButtonCode(SysButtonUpdateBO sysButtonUpdateBO);

    int addSysButton(SysButtonAddBO sysButtonAddBO);

    int deleteSysButtonByMenuButtonCode(SysButtonDeleteBO sysButtonDeleteBO);

    boolean isButtonCodeExist(String menuCode,String buttonCode);

    List<SysRoleButtonVO> getButtonCodeByRoleMenuCode(String roleCode, String menuCode);

    List<SysRoleButton> getRoleButtonByMenuButtonCode(SysButtonDeleteBO sysButtonDeleteBO);
}
